const state = {
  userName: 'bobo'
};
const mutations = {
  SET_USERNAME(state, userName) {
    state.userName = userName;
  }
};
const actions = {
  setUserName({ commit }, userName) {
    commit('SET_USERNAME', userName);
  }
};
const getters = {
  getUserName: (state) => {
    return state.userName;
  }
};
export default { state, mutations, actions, getters };
